import axios from '../../http/axios'

export default {
  //账号是否存在
  isExist(params) {
    return axios({
      url: '/users/isExist',
      method: 'post',
      data: params
    })
  },

  //注册
  register(params) {
    return axios({
      url: '/users/register',
      method: 'post',
      data: params
    })
  },

  //登录
  login(params) {
    return axios({
      url: 'users/login',
      method: 'post',
      data: params
    })
  }
}